<?php if (!defined('THINK_PATH')) exit();?>﻿<!DOCTYPE HTML>
<html>
<head>
<title>上海久泰木结构有限公司</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Landscape Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template, 
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<link href="/jiutaimu/Public/css/bootstrap.css" rel="stylesheet" type="text/css" media="all" />
<link href="/jiutaimu/Public/css/style.css" rel="stylesheet" type="text/css" media="all" />
<link href='http://fonts.useso.com/css?family=Open+Sans+Condensed:300,700' rel='stylesheet' type='text/css'>
<!--slider-->
<link href="/jiutaimu/Public/css/slider.css" rel="stylesheet" type="text/css" media="all"/>
<script type="text/javascript" src="/jiutaimu/Public/js/jquery.min.js"></script>
<script type="text/javascript" src="/jiutaimu/Public/js/jquery.nivo.slider.js"></script>
<script type="text/javascript">
    $(window).load(function() {
        $('#slider').nivoSlider();
    });
    </script>
</head>
<body>
    <div class="page-content">
    
              <!------ Slider ------------>
<div class="banner">
      <div class="container">
          <div class="h_menu4"><!-- start h_menu4 -->
          <a class="toggleMenu" href="#">菜单</a>
        <ul class="nav">
          <li class="active"><a href="/jiutaimu/index.php/Index/index">首页</a></li>
            <li><a href="/jiutaimu/index.php/About/index">关于我们</a></li>
            <li><a href="/jiutaimu/index.php/Porduct/index">成功案例</a></li>
            <li><a href="/jiutaimu/index.php/News/index">新闻动态</a></li>
            <li><a href="/jiutaimu/index.php/Contact/index">联系我们</a></li>    
         </ul>
         <script type="text/javascript" src="/jiutaimu/Public/js/nav.js"></script>
         </div><!-- end h_menu4 -->
     </div>   
         <div class="slider">
      <div class="slider-wrapper theme-default">
               <div id="slider" class="nivoSlider" >
               <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><img src="/jiutaimu/Public/images/<?php echo ($vo["url"]); ?>" height="600"  alt="<?php echo ($vo["title"]); ?>" /><?php endforeach; endif; else: echo "" ;endif; ?>
                  
<!--                   <img src="/jiutaimu/Public/images/青岛万科小珠江游客中心2.jpg" height="600" alt="" />
                  <img src="/jiutaimu/Public/images/隐秀山居1.jpg" alt="" height="600" /> -->
               </div>
          </div>
        </div>
</div>
   <!------End Slider ------------>


  



        
<div class="about_box">
	 <div class="container">
<?php echo ($about["content"]); ?>
</div>
</div>
<div class="about_box">
	 <div class="container">
	 	<h3>我的团队</h3>
	 	<?php if(is_array($team)): $i = 0; $__LIST__ = $team;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="col-md-3 row_1">
			<img src="/jiutaimu/Public/images/<?php echo ($vo["img_url"]); ?>" class="img-responsive" alt=""/>
			<h5><a href="#"><?php echo ($vo["name"]); ?></a></h5>
			<p><?php echo ($vo["introduce"]); ?></p>
		</div><?php endforeach; endif; else: echo "" ;endif; ?>
<!-- 		<div class="col-md-3 row_1">
			<img src="/jiutaimu/Public/images/a2.jpg" class="img-responsive" alt=""/>
			<h5><a href="#">euismod</a></h5>
			<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna.</p>
			<a href="#" class="btn_2">more</a>
		</div>
		<div class="col-md-3 row_1">
			<img src="/jiutaimu/Public/images/a3.jpg" class="img-responsive" alt=""/>
			<h5><a href="#">tincidunt</a></h5>
			<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna.</p>
			<a href="#" class="btn_2">more</a>
		</div>
		<div class="col-md-3 row_1">
			<img src="/jiutaimu/Public/images/a4.jpg" class="img-responsive" alt=""/>
			<h5><a href="#">laoreet</a></h5>
			<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna.</p>
			<a href="#" class="btn_2">more</a>
		</div> -->
		<div class="clearfix"> </div>
     </div>
</div>
 
          
        <div class="footer">
  <div class="container">
  <div class="col-md-5 contact-section">
    <h4>建议留言</h4>
      <input type="text" class="text" placeholder="名字(必填)" id="name">
      <input type="text" class="text" placeholder="邮箱" id="email">
      <textarea name="content" id="content" placeholder="请提出您宝贵的建议......(必填)"></textarea>
      <p id="msg" style="color:red; font-size:20px;margin-bottom:10px;display:none"></p>
      <input type="submit" id="submit" value="提交">
  </div>
  <div class="col-md-7 follow-us">
    <h4>联系我们</h4>
<!--    <div class="social-icons">
      <i class="facebook"></i>
      <i class="twitter"></i>
      <i class="pinterest"></i>
      <i class="googlepluse"></i>
    </div> -->
<?php echo ($contact["content"]); ?>
    <div class="copyright">
      <p>Copyright &copy; 2016. All rights reserved.上海久泰木结构有限公司</p>
    </div>
  </div>
  <div class="clearfix"></div>
  </div>
</div>
<!-- FlexSlider -->
<link href="/jiutaimu/Public/css/flexslider.css" rel='stylesheet' type='text/css' />
  <script defer src="/jiutaimu/Public/js/jquery.flexslider.js"></script>
  <script type="text/javascript">
 
  $(function(){
    SyntaxHighlighter.all();
   
  });
 $('#submit').bind('click',sub_message);


   function sub_message(){
          var name= $('#name').val();
          var email= $('#email').val();
          var content= $('#content').val();
          if(name ==""){
            $('#msg').html('名字不能为空!').show();
            return;
          }
           var reg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
            if(!reg.test(email)){
             $('#msg').html('邮箱格式不正确!').show();
             return;
            }
         if(content == ""){
           $('#msg').html('内容不能为空!').show();
           return;
         }

               $.ajax({
                 url: "<?php echo u('Index/message');?>",
                 type: 'POST',
                 dataType: 'json',
                 data: {"name": name,
                        "email" : email,
                        "content" : content
                 },
                 complete: function(xhr, textStatus) {
                   //called when complete
                 },
                 success: function(data) {
                   if(data.status == 1){
                    $('#msg').html(data.msg).css('color','yellow').show();
                    setTimeout(function(){
                       $('#msg').html("").hide().css('color','red');
                    },1000);
                    $('#name').val('');
                    $('#email').val('');
                    $('#content').val('');
                   }else{
                    $('#msg').html(data.msg).show();
                    setTimeout(function(){
                       $('#msg').html("").hide();
                    },1000);
                    $('#name').val('');
                    $('#email').val('');
                    $('#content').val('');
                   }
                 },
                 error: function(xhr, textStatus, errorThrown) {
                   //called when there is an error
                 }
             });
 }


 
  $(window).load(function(){
    $('.flexslider').flexslider({
    animation: "slide",
    start: function(slider){
      $('body').removeClass('loading');
    }
    });
  });
  </script>


        

    </div>
</body>
</html>